
TEMPLATE	=  lib
CONFIG		-= qt
CONFIG		+= thread debug_and_release
TARGET		=  XUtil_cl

DEFINES	    += CHK_MEM_LEAKS

win32 {
	DEFINES	+= WIN32 _CRT_SECURE_NO_DEPRECATE _CONSOLE
	DEFINES	-= UNICODE
	QMAKE_CXXFLAGS	+= /Gm /EHsc /MT /Od 
}

INCLUDEPATH				+= $(BOOSTDIR)
INCLUDEPATH				+= ../Util/inc
INCLUDEPATH				+= ../component/nvwa

CONFIG(release, debug|release) {
	OBJECTS_DIR		=  ../obj/$${TARGET}/release
	DESTDIR			=  ../bin/release
}

CONFIG(debug, debug|release) {
	OBJECTS_DIR 	=  ../obj/$${TARGET}/debug
	DESTDIR			=  ../bin/debug
	win32:DEFINES	+= _DEBUG
}

SOURCES     +=  \
                ../Util/src/xlisttree.cpp \
                ../Util/src/xtime.c \
                ../Util/src/xutil.c \
                ../Util/src/utf.c \
                ../Util/src/xcrc.c \
                ../Util/src/byteorder.c \
                ../Util/src/inifile.cpp \
                ../Util/src/xdbg.cpp \
                ../Util/src/xdbg_chktm.cpp \
                ../Util/src/xdbg_log.cpp \
                ../Util/src/xdbg_log_private.cpp \
                ../Util/src/xmsgque_boost.cpp \
                ../Util/src/xgetopt.cpp \
                ../Util/src/ipc_shell.cpp

win32 {
SOURCES     +=  \
                ../Util/src/shmutex_win.cpp \
                ../Util/src/shthread_win.cpp \
                ../Util/src/shwaitcondition_win.cpp   \
                ../Util/src/list_entry.cpp  \
                ../Util/src/xheap.cpp
}

linux-g++{
SOURCES     +=  \
                ../Util/src/shmutex_unix.cpp \
                ../Util/src/shthread_unix.cpp   \
                ../Util/src/shwaitcondition_unix.cpp   \
                ../Util/src/lnx_util.c \
                ../Util/src/ipc_util.cpp
}
